package com.orange.controller;

import java.sql.SQLException;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.orange.handler.AuthItemService;
import com.orange.modules.bean.SessionUser;
import com.orange.util.ReturnCode;

@Controller
@RequestMapping("sItem")
public class AuthSchoolItemController extends BaseController{

	private static final Logger logger = Logger.getLogger(AuthSchoolItemController.class);
	
	@Autowired
	private AuthItemService authItemService;
	
	/**
	 * 分页查询一级指标，二级指标  以及二级指标下的细则
	 */
	@RequestMapping(value = "/queryItem" ,produces = MediaType.TEXT_HTML_VALUE+";charset=UTF-8", method=RequestMethod.POST)
	@ResponseBody
	public ResponseEntity<String> queryItem(HttpServletRequest request,@RequestBody Map<String ,String> map) throws SQLException{
		
		String pid=(String) request.getSession().getAttribute(SessionUser.SESSION_USER_KEY);
		if(null==pid){
			return toResponse(null,ReturnCode.NOLOGIN,"未登录");
		}
		
		
		return null;
		 
	}

	
}
